package com.ruoyi.base.domain;

import java.util.Date;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工请假对象 m_holidays
 * 
 * @author ruoyi
 * @date 2024-08-09
 */
public class MHolidays extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 表id */
    private Long id;

    /** 员工id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)//此句为问题关键相当于吧Long转换为String
    @JSONField(serializeUsing = ToStringSerializer.class) //此处标识得在序列化的时候转换为字符串

    private Long sId;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String sName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 请假月 */
    @Excel(name = "请假月")
    private String holidayMonth;

    /** 天数 */
    @Excel(name = "天数")
    private Long hDays;

    /** 备注 */
    @Excel(name = "备注")
    private String sNotes;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setsId(Long sId) 
    {
        this.sId = sId;
    }

    public Long getsId() 
    {
        return sId;
    }
    public void setsName(String sName) 
    {
        this.sName = sName;
    }

    public String getsName() 
    {
        return sName;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setHolidayMonth(String holidayMonth) 
    {
        this.holidayMonth = holidayMonth;
    }

    public String getHolidayMonth() 
    {
        return holidayMonth;
    }
    public void sethDays(Long hDays) 
    {
        this.hDays = hDays;
    }

    public Long gethDays() 
    {
        return hDays;
    }
    public void setsNotes(String sNotes) 
    {
        this.sNotes = sNotes;
    }

    public String getsNotes() 
    {
        return sNotes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sId", getsId())
            .append("sName", getsName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("holidayMonth", getHolidayMonth())
            .append("hDays", gethDays())
            .append("sNotes", getsNotes())
            .toString();
    }
}
